<?php

class Site
{
	const title = "AntsKnow WoFlow";
	const product = "WoFlow";
	const company = "AntsKnow";
}

class Pages
{
	// important pages
	const Login = "login";
	const SignUp = "signup";
	const Home = "home";
	const About = "about";
	const ForgotPassword = "forgotpass";
	const Contact = "contact";

	// overlays
	const LoginForm = "loginform";

	// controller prefixes
	const PageControllerPrefix = "/woflow/default/page/";
	const ViewControllerPrefix = "/woflow/view/";
	const OverlayPrefix = "o/";
}

/**
* Some utility functions
*/

function htmlHREF($pageName)
{
	print "href='" . Pages::PageControllerPrefix . $pageName . "' ";
}

function overlayURL($overlayName)
{
	return Pages::ViewControllerPrefix.Pages::OverlayPrefix.$overlayName;
}

function overlayHREF($overlayName)
{
	$overlayPath = overlayURL($overlayName);
	print "href='".$overlayPath."' ";
}

?>